const { union } = require("underscore");

// components/home-displayCard/home-displayCard.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    serviceList: {
      type: Array,
      default: () => []
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleToDetailsPage(event) {
      const id = event.currentTarget.dataset.item
      this.triggerEvent('fetchDetails', id)
      wx.navigateTo({
        url: `/homepackage/pages/service-details/service-details?id=${id}`
      })
    }
  }
})